const express = require("express");
const app = express();

app.use(express.static("public"));
//设置虚拟目录
app.use("/static", express.static("public"));

app.listen(8080);